package com.six.vo;

import java.sql.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 工作站
 * 
 */
@Entity
@Table(name="WMS_T_WKSTN")
public class Wkstn {
	 private int wkstnID;// VARCHAR(16) 工作站编号
	 private String wkstnName;//  NVARCHAR2(60) 工作站名称
	 private String wkstnDevice;//  VARCHAR(16) 设备类型
	 private String wkstnIp;//  NVARCHAR2(60) IP 地址
	 private String wkstnState;//  VARCHAR(16) 工作站状态
	 private Date wkstnEditTime;//  DATE 最后编辑时间
	 private int wkstnIsDel;//  SMALLINT 是否已被删除
	 private Store store;
	 private User wkstnOp;
	 
		public Wkstn() {
		super();
	}
		public Wkstn(int wkstnID, String wkstnName, String wkstnDevice,
			String wkstnIp, String wkstnState, Date wkstnEditTime,
			int wkstnIsDel, Store store, User wkstnOp) {
		super();
		this.wkstnID = wkstnID;
		this.wkstnName = wkstnName;
		this.wkstnDevice = wkstnDevice;
		this.wkstnIp = wkstnIp;
		this.wkstnState = wkstnState;
		this.wkstnEditTime = wkstnEditTime;
		this.wkstnIsDel = wkstnIsDel;
		this.store = store;
		this.wkstnOp = wkstnOp;
	}
		@Id
		@GeneratedValue
	public int getWkstnID() {
		return wkstnID;
	}
	public void setWkstnID(int wkstnID) {
		this.wkstnID = wkstnID;
	}
	public String getWkstnName() {
		return wkstnName;
	}
	public void setWkstnName(String wkstnName) {
		this.wkstnName = wkstnName;
	}
	public String getWkstnDevice() {
		return wkstnDevice;
	}
	public void setWkstnDevice(String wkstnDevice) {
		this.wkstnDevice = wkstnDevice;
	}
	public String getWkstnIp() {
		return wkstnIp;
	}
	public void setWkstnIp(String wkstnIp) {
		this.wkstnIp = wkstnIp;
	}
	public String getWkstnState() {
		return wkstnState;
	}
	public void setWkstnState(String wkstnState) {
		this.wkstnState = wkstnState;
	}
	public Date getWkstnEditTime() {
		return wkstnEditTime;
	}
	public void setWkstnEditTime(Date wkstnEditTime) {
		this.wkstnEditTime = wkstnEditTime;
	}
	public int getWkstnIsDel() {
		return wkstnIsDel;
	}
	public void setWkstnIsDel(int wkstnIsDel) {
		this.wkstnIsDel = wkstnIsDel;
	}
	@ManyToOne(cascade={CascadeType.ALL})           
    @JoinColumn(name="storeID") 	 //  VARCHAR(16) 库房编号
	public Store getStore() {
		return store;
	}
	public void setStore(Store store) {
		this.store = store;
	}
	@ManyToOne(cascade={CascadeType.ALL})           
    @JoinColumn(name="wkstnOp") //  VARCHAR(16) 工作站操作员
	public User getWkstnOp() {
		return wkstnOp;
	}
	public void setWkstnOp(User wkstnOp) {
		this.wkstnOp = wkstnOp;
	}

}
